package gateway;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * <p>
 * 网关服务启动类
 * </p>
 *
 * @author Yohann
 * @since 2020/11/22
 */
@EnableDiscoveryClient
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@Slf4j
public class GatewayApplication {
    public static void main(String[] args) throws UnknownHostException {
        SpringApplication.run(GatewayApplication.class, args);

        log.info("\n\t----------------------------------------------------------\n\t" +
                "\t\t\tgateway is running\t\t网关启动成功\n\t" +
                "----------------------------------------------------------");
    }
}